package heap;

import java.util.Arrays;
import java.util.Random;

public class HeapTest {
    public static void main(String[] args) {
        int[] array = new int[11];
        for (int i = 0; i < array.length; i++) {
            Random r = new Random();
            array[i] = r.nextInt(100);
        }
        System.out.println(Arrays.toString(array));
        Heap heap = new Heap(array);
        System.out.println(heap.toString());
        heap.insert(50);
        System.out.println(heap.toString());
        heap.sort();
        System.out.println(heap.toString());
    }
}